package com.ls.controller.team;

import com.ls.controller.team.model.QueryTeamModel;
import com.ls.service.ITeamService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 分组表，与customer关联 前端控制器
 * </p>
 * 需要加一个分组表，用户和分组是一对多的关系
 * @author pengyu
 * @since 2024-11-20
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/group")
@Api(value = "分组", tags = "分组")
public class TeamController {
    private final ITeamService service;

    /** 分组 */
    @GetMapping(value = "pageList")
    public ResultData pageList(QueryTeamModel model) {
        return service.pageList(model);
    }
}
